﻿using IcsSEMCtrl.Event.Device;
using IcsSEMCtrl.Service.Alarm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TKT.Lifter.CIM.Lifter.Event.Lifter
{
    [Serializable]
    class AlarmShowEvent: DeviceEvent
    {
        public static readonly string CLASS = "AlarmShowEvent";
        public static readonly string SPECIFIC_SUBJECT = "AlarmShow";
        public new static readonly string SUBJECT = DeviceEvent.SUBJECT + "." + AlarmShowEvent.SPECIFIC_SUBJECT;
        private List<EcpAlarm> Alarms = new List<EcpAlarm>();

        public AlarmShowEvent(string deviceId, string deviceType, List<EcpAlarm> value) : base(deviceId, deviceType)
        {
            this.Alarms1 = value;
        }
        public List<EcpAlarm> Alarms1 { get => Alarms; set => Alarms = value; }

        public new static string FormSubject(string id)
        {
            return AlarmShowEvent.SUBJECT + "." + id;
        }
    }
}
